<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.ajax4jsf.org/rich">

<f:view>
    <ui:composition template="../../template/template.xhtml">

	    <ui:define name="conteudo">
	            
	            
	    <a4j:form id="formMarcarConsulta" ajaxSingle="true" style="width: 50.1%; margin-left: 320px; border: 1px solid #B0C4DE; margin-top: -16px; margin-bottom: -16px;">
	     
	     <br />
		     
		     <rich:messages style="margin-left:10px; COLOR: #ff0000; FONT-WEIGHT: bold;"></rich:messages>
	       
	      
	      <div style="margin-left:0px;"> 
	        <center>
	        
	        <b>Remarcar Consulta</b>
	
			<br />
			<br />
	
			
				<h:outputLabel value="Especialidade: " style="FONT-WEIGHT: bold; margin-left: -238px;"/>
				
				<h:outputText value="#{marcarConsultaBean.consultaDTO.noEspecialidade}" style="margin-left: 10px;"/>
				
				<br />
				
				<h:outputLabel value="Terapeuta: " style="FONT-WEIGHT: bold; margin-left: -238px;"/>
				
				<h:outputText value="#{marcarConsultaBean.consultaDTO.noTerapeuta}" style="margin-left: 10px;"/>
				
				<br />
				
				<h:outputLabel value="Nome Paciente: " style="FONT-WEIGHT: bold; margin-left: -292px; margin-right: 11px;"/>
				
				<h:outputText value="#{marcarConsultaBean.consultaDTO.noPaciente}" />
			
				<br />
			
			
				<h:outputLabel value="Data: " style="FONT-WEIGHT: bold; margin-left: -68px; margin-right: 11px;"/>
				
				<h:outputText value="#{marcarConsultaBean.consultaDTO.data}" />

				<h:outputLabel value="Hora: " style="FONT-WEIGHT: bold; margin-left: 17px; margin-right: 10px;"/>
				
				<h:outputText value="#{marcarConsultaBean.consultaDTO.inicio}" />
			
				<br />
			
				<h:outputLabel value="Nova Data: " style="FONT-WEIGHT: bold; margin-left: 119px; margin-right: 10px;"/>
				
				<rich:calendar value="#{marcarConsultaBean.novaData}"  id="novaData" datePattern="dd/MM/yyyy" converter="DateConverter"/>
					 				
				<h:outputLabel value="Novo Horário: " style="FONT-WEIGHT: bold; margin-left: 10px; margin-right: 10px;"/>
				
				<h:inputText value="#{marcarConsultaBean.novoHorario}" disabled="true"/>
								
			
			 <br />
			 <br />
			 
			 <a4j:commandButton value="Salvar" action="#{marcarConsultaBean.atualizarConsulta}" style="margin-right: 20px;"/>
			 <a4j:commandButton value="Horário Anterior" action="#{marcarConsultaBean.recuperarHorarioAnteriorRe}" style="margin-right: 20px;" reRender="formMarcarConsulta"/>
			 <a4j:commandButton value="Próximo Horário" action="#{marcarConsultaBean.recuperarHorarioPosteriorRe}" style="margin-right: 20px;" reRender="formMarcarConsulta"/>
			 <a4j:commandButton value="Voltar" action="#{marcarConsultaBean.voltarResultado}" style="margin-right: 20px;" reRender="formMarcarConsulta"/>
			 
			 <br />
			 <br />
	
	        </center>
		   </div> 
		    <br />
		    
	    	</a4j:form>
	    	
		</ui:define>
    </ui:composition>
</f:view>
</html>